# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        黄周云  
# Name:         text
# Description:  例23.13
# Author:       ASUS
# Date:         2019/4/7
#-------------------------------------------------------------------------------


from numpy import *
h,l = loadtxt("data.csv",delimiter=",",usecols=(4,5),unpack=True)
#计算数组的最大值、最小值和取值范围
print("highest","=",max(h))
print("lowest","=",min(l))
print("范围","=",max(h)-min(h))
print("范围","=",ptp(h))
high = loadtxt("data.csv",delimiter=",",usecols=(4,5))
print("多维数组的取值范围","=",ptp(high))
